class Carshop {
    private String CarshopName;
    private int bb = 0;
    private int money = 0;

    public String getCarshopName(){
        return CarshopName;
    }


  /*  public int getcount(){
        return count;
    }


    public int getmoney(){
        return  money;
    }*/

    Carshop(String CarshopName){
        this.CarshopName = CarshopName;
    }


    void Carsell(Car a1){
        bb++;
        money += a1.getPrice();
        System.out.println("这个车店叫:"+getCarshopName()+",已经卖出了"+a1.getName()+"车"+bb+"台"+",此辆单价为"+a1.getPrice()+"元，该店铺现营业额为:"+money);
    }

}
